import request from '@/utils/request'

// 查询维修项列表
export function listGarageItem(query) {
  return request({
    url: '/car/garageItem/list',
    method: 'get',
    params: query
  })
}

// 查询维修项详细
export function getGarageItem(itemId) {
  return request({
    url: '/car/garageItem/' + itemId,
    method: 'get'
  })
}

// 新增维修项
export function addGarageItem(data) {
  return request({
    url: '/car/garageItem',
    method: 'post',
    data: data
  })
}

// 修改维修项
export function updateGarageItem(data) {
  return request({
    url: '/car/garageItem',
    method: 'put',
    data: data
  })
}

// 删除维修项
export function delGarageItem(itemId) {
  return request({
    url: '/car/garageItem/' + itemId,
    method: 'delete'
  })
}

// 查询维修项combo
export function getGarageItemCombo(query) {
  return request({
    url: '/car/garageItem/combo',
    method: 'get',
    params: query
  })
}
